********************************************************************************
* Self-Confidence and Gender Gaps in Political Interest, Attention, and Efficacy
* Journal of Politics
* 2008 Young Adults panel survey in National Longitudinal Survey of Youth
********************************************************************************

* TABLE 1 - Predicting Levels of Political Interest, Attention to Politics, and Internal Efficacy
regress polint08 sconf08 risk08 ptalkh mrfp medta08 tfam08a edu08 female age08 black latino [pweight=weight08], cluster(c0000200)
regress folpol08 sconf08 risk08 ptalkh mrfp medta08 tfam08a edu08 female age08 black latino [pweight=weight08], cluster(c0000200)
regress ineff08 sconf08 risk08 ptalkh mrfp medta08 tfam08a edu08 female age08 black latino [pweight=weight08], cluster(c0000200)


* MEDIATION TESTS
********************************************************************************

* self-confidence

* TABLE A9 - Gender and the Mediating Effects of Self-Confidence on Political Interest
regress polint08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress polint08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(sconf08) vce(cluster c0000200) 

* TABLE A11 - Gender and the Mediating Effects of Self-Confidence on Attention to Politics
regress folpol08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress folpol08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(sconf08) vce(cluster c0000200) 

* TABLE A13 - Gender and the Mediating Effects of Self-Confidence on Internal Political Efficacy
regress ineff08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress ineff08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(sconf08) vce(cluster c0000200) 

* self-esteem and self-efficacy separately

* TABLE A10 - Gender and the Mediating Effects of Self-Esteem and Self-Efficacy on Political Interest
regress polint08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress selfes08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress polint08 female selfes08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(selfes08) vce(cluster c0000200) 
medeff (regress seff08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress polint08 female seff08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(seff08) vce(cluster c0000200) 

* TABLE A12 - Gender and the Mediating Effects of Self-Esteem and Self-Efficacy on Attention to Politics
regress folpol08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress selfes08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress folpol08 female selfes08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(selfes08) vce(cluster c0000200) 
medeff (regress seff08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress folpol08 female seff08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(seff08) vce(cluster c0000200) 

* TABLE A14 - Gender and the Mediating Effects of Self-Esteem and Self-Efficacy on Internal Political Efficacy
regress ineff08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino [pweight=weight08], cluster(c0000200)
medeff (regress selfes08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress ineff08 female selfes08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(selfes08) vce(cluster c0000200) 
medeff (regress seff08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress ineff08 female seff08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(seff08) vce(cluster c0000200) 


* education and liberal view on traditional family roles

* TABLE A15 - Gender and the Mediating Effects of Education and Views on Traditional Family Roles on Political Interest and Attention to Politics
medeff (regress edu08 female sconf08 ptalkh mrfp medta08 risk08 tfam08a age08 black latino) (regress polint08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(edu08) vce(cluster c0000200) 
medeff (regress edu08 sconf08 female ptalkh mrfp medta08 risk08 tfam08a age08 black latino) (regress folpol08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(edu08) vce(cluster c0000200) 
medeff (regress tfam08a sconf08 female ptalkh mrfp medta08 risk08 edu08 age08 black latino) (regress folpol08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(tfam08a) vce(cluster c0000200) 

* TABLE A16 - Gender and the Mediating Effects of Education and Views on Traditional Family Roles on Internal Political Efficacy
medeff (regress edu08 sconf08 female ptalkh mrfp medta08 risk08 tfam08a age08 black latino) (regress ineff08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(edu08) vce(cluster c0000200) 
medeff (regress tfam08a sconf08 female ptalkh mrfp medta08 risk08 edu08 age08 black latino) (regress ineff08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) [pweight=weight08], treat(female) mediate(tfam08a) vce(cluster c0000200) 



* MEDIATION SENSITIVITY ANALYSIS
********************************************************************************

medsens (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress polint08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino), treat(female) mediate(sconf08) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")

medsens (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress folpol08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino), treat(female) mediate(sconf08) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")

medsens (regress sconf08 female ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino) (regress ineff08 female sconf08 ptalkh mrfp medta08 tfam08a risk08 edu08 age08 black latino), treat(female) mediate(sconf08) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")



* MODERATION INSTEAD OF MEDIATION
********************************************************************************

* TABLE A17: gender as a moderator (self-confidence)
regress polint08 female##c.sconf08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress folpol08 female##c.sconf08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress ineff08 female##c.sconf08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)

* TABLE A18: gender as a moderator (self-esteem and self-efficacy)
regress polint08 female##c.selfes08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress polint08 female##c.seff08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress folpol08 female##c.selfes08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress folpol08 female##c.seff08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress ineff08 female##c.selfes08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)
regress ineff08 female##c.seff08 female##c.risk08 female##c.ptalkh female##c.mrfp female##c.medta08 female##c.tfam08a female##c.edu08 age08 black latino [pweight=weight08], cluster(c0000200)


